package com.pet.server.ext.util;

import java.math.BigDecimal;

public class MoneyHelper {

	public static double trim(double yuan) {
        BigDecimal bd = new BigDecimal(yuan);   
        bd = bd.setScale(2,BigDecimal.ROUND_HALF_UP);  
		return bd.doubleValue();
	}

}
